<?xml version="1.0" encoding="utf-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>ObjectStore Acquisition Tests</title>

<script type="text/javascript" src="../lib/jsunit/app/jsUnitCore.js"></script>

<script type="text/javascript" src="../lib/prototype/prototype.js"></script>
<script type="text/javascript" src="../lib/gears/gears_init.js"></script>
<script type="text/javascript" src="../src/ObjectThought.js"></script>

<script type="text/javascript">//<![CDATA[

function testThatObjectThoughtIsRegisteredToTheWindow()
{
    assertNotUndefined(ObjectStore);
    assertNotNull(ObjectStore);
}

function testThatObjectThoughtExposesTheGetStoreMethod()
{
    assertNotUndefined(ObjectStore.getStore);
    assert(typeof ObjectStore.getStore == "function");
}

function testThatWeCanAcquireAStore()
{
    var store = ObjectStore.getStore("objectthought_unittests");
    assertNotNull(store);
}

//]]></script>

</head>

<body>
    <p>This is a <a href="http://www.jsunit.net/">JsUnit</a> test page.</p>
    <p>In order to run these tests, please load this html file in JsUnit's <a href="../lib/jsunit/testRunner.html">testRunner.html</a>.</p>
</body>

</html>